//
//  SelectTypeCell.m
//  KeleAppProject
//
//  Created by 周岑 on 2018/1/21.
//  Copyright © 2018年 Cen Zhou. All rights reserved.
//

#import "SelectTypeCell.h"

@implementation SelectTypeCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        [self loadSubviewsOnTypeCell];
    }
    return self;
}


- (void)loadSubviewsOnTypeCell{
    
    UIButton *titleBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [titleBtn setTitle:@"哈哈哈" forState:UIControlStateNormal];
    [titleBtn setTitleColor:KLColor_B12 forState:UIControlStateNormal];
    titleBtn.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:14*WIDTH];
    titleBtn.contentEdgeInsets = UIEdgeInsetsMake(6*HEIGHT, 10*HEIGHT, 6*HEIGHT, 10*HEIGHT);
    titleBtn.backgroundColor = KLColor_A9;
    titleBtn.layer.cornerRadius = 2;
    self.titleBtn = titleBtn;
    titleBtn.enabled = NO;
    [self.contentView addSubview:titleBtn];
    [titleBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
//        make.width.mas_equalTo(76*WIDTH);
        make.height.mas_equalTo(32*HEIGHT);
    }];
    
    
}


@end
